//
//  HelloWorldLayer.h
//  SpaceShooter
//
//  Created by admin on 3/23/12.
//  Copyright __MyCompanyName__ 2012. All rights reserved.
//


// When you import this file, you import all the cocos2d classes
#import "cocos2d.h"
#import "Monster.h"
#import "Player.h"

typedef enum {
    kEndReasonWin,
    kEndReasonLose
} EndReason;

typedef enum{
    kNormal,
    kMeetEnemy,
    kHaveEnemy
}FlagEnemy;

// HelloWorldLayer
@interface HelloWorldLayer : CCLayer
{
    CCSpriteBatchNode *         _batchNode;
    Player*                   _ship;
    
    CCParallaxNode *_backgroundNode;
    CCSprite *_spacedust1;
    CCSprite *_spacedust2;
    CCSprite *_planetsunrise;
    CCSprite *_galaxy;
    CCSprite *_spacialanomaly;
    CCSprite *_spacialanomaly2;
    
    float _shipPointsPerSecY;
    
    CCArray *_asteroids;
    int _nextAsteroid;
    double _nextAsteroidSpawn;
    
    CCArray *_shipLasers;
    int _nextShipLaser;
    

    double _gameOverTime;
    bool _gameOver;
    
    Monster* enemy;
    FlagEnemy        isMeetEnemy;
}

// returns a CCScene that contains the HelloWorldLayer as the only child
+(CCScene *) scene;

@end
